package com.itheima.mapper;

import com.github.pagehelper.Page;
import com.itheima.entity.OrderBean;
import com.itheima.pojo.Member;
import com.itheima.pojo.Order;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.Map;

public interface OrderMapper {
    Page<Order> selectByCondition(@Param("queryString") String queryString);

    Member findMemberById(Integer memberId);

    void deleteById(Integer id);

    Order findOrder(@Param("memberId") Integer memberId,
                    @Param("orderDate") Date orderDate,
                    @Param("setmealId") Integer setmealId);

    void save(Order order);

    Map findOrderDetail(Integer id);

    Date findDateById(Integer id);

    Map findById(Integer orderId);

    void update(Order order);
}
